<%layout("/common/layout.html"){%>

<%include("/common/head.html"){}%>

<div class="am-lg">

    <div class="am-text-center">
        <%if(session.user!=null){%>
        <h1>我的信息</h1>
        <%}else{%>
        <h1>${user.name}的信息</h1>
        <%}%>
    </div>

    <div class="am-u-sm-12">

        <%include("/common/user_left.html"){}%>

        <div class="am-u-sm-7" >
            <br>

            <div class="am-panel am-panel-default" style="padding: 20px">

                <div class="am-g am-text-center">
                    <img src="${user.head}" class="am-circle"
                         style="width: 100px">
                    <br>
                    <br>
                </div>

                <div class="am-g am-text-center">
                    <h2 class="am-kai">${user.name}</h2>

                    <%if(user.feeling==null){%>
                    <p>这个人好懒...什么也没有写</p>
                    <%}else{%>
                    <p>${user.feeling}</p>
                    <%}%>

                </div>

                <%if(user.id==session.user.id){%>

                <form action="${base}/user/editInfo" method="post">
                    <div class="am-g am-text-center">
                        <p>签名:</p>

                        <div class="am-input-group">
                            <span class="am-input-group-label"><i class="am-icon-user am-icon-fw"></i></span>
                            <input type="text" name="feeling" class="am-form-field" placeholder="个性签名">
                        </div>

                        <p>地址:</p>

                        <div class="am-input-group">
                            <span class="am-input-group-label"><i class="am-icon-user am-icon-fw"></i></span>
                            <input type="text" name="location" class="am-form-field" placeholder="所在地">
                        </div>

                        <br>
                        <br>

                        <label><input type="submit" class="am-text-center am-btn am-btn-warning" value="更改"></label>
                    </div>


                </form>

                <%}%>
            </div>
        </div>
    </div>
</div>



<%}%>